package com.zainzhou.dao.mapper;

import com.zainzhou.dao.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author : 周振宇
 * Created on 2024/06/19 11:12
 **/
@Mapper
public interface UserMapper {
    UserEntity login(@Param("username") String username, @Param("password") String password);

    UserEntity queryUserById(@Param("id")String id);

    int createUser(@Param("user")UserEntity user);

    int updateUser(@Param("user")UserEntity user);

    int deleteUser(@Param("id")String id);
}
